#include "stdafx.h"
#include "GraphicsComponent.h"

#include "Application.h"

namespace Cinetic
{
	GraphicsComponent::GraphicsComponent( std::shared_ptr<GameObject> go ) :
        Component(go),
        m_mesh("")
	{
        ME_ASSERT(go != nullptr,"Game object must be not null");
	}

	void GraphicsComponent::set_mesh( const Ogre::String& mesh )
	{
		m_mesh = mesh;
		//Notify of the change in the mesh so the proper representation could be created
        MeshChanged(m_mesh);
	}

    const Ogre::String& GraphicsComponent::mesh() const
    {
        return m_mesh;
    }

}